# Copyright (c) 2009 Daropia Project (www.daropia.org)
#
# This file is part of Daropia and is available under the terms
# of the GNU General Public Licence version 2.0 or later.


# Represent a forum in database

class Forum < Sequel::Model
    # Each forum has many topics
    one_to_many :topics

    # Create some default forums if we don't have any
    if empty?
        create :name => 'Site', :description => 'Le premier forum !'
        create :name => 'Cité', :description => 'Forum des habitants'
    end
end
